package com.ruoyi.business.mapper.wecom;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.business.domain.vo.wecom.admin.CustomerChatGroupDetailVO;
import com.ruoyi.business.domain.vo.wecom.admin.TbWecomCustomerChatGroupVO;
import com.ruoyi.business.domain.wecom.TbWecomChatGroupMember;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TbWecomChatGroupMemberMapper extends BaseMapperPlus<TbWecomChatGroupMemberMapper, TbWecomChatGroupMember, TbWecomChatGroupMember> {

    List<TbWecomCustomerChatGroupVO> memberGroupList(@Param("type") Integer type, @Param("unionId") String unionId, @Param("externalUserId") String externalUserId);


    IPage<CustomerChatGroupDetailVO> selectChatGroupDetailByExternalUserId(
        IPage<CustomerChatGroupDetailVO> page,
        @Param("externalUserId") String externalUserId);


}
